<?php
/**
 * Common Lib.
 *
 *
 */
Class common {

	function __consturct() {}

	function retrieve($url)
	{
		$ch = curl_init();
		curl_setopt($ch, CURLOPT_URL, $url);
		//curl_setopt($ch, CURLOPT_POST, TRUE);
		//curl_setopt($ch, CURLOPT_POSTFIELDS , http_build_query($array));
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
		curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
		curl_setopt($ch, CURLOPT_USERAGENT, "auc_api agent");
		//curl_setopt($ch, CURLOPT_COOKIEFILE, PLURK_COOKIE_PATH);
		//curl_setopt($ch, CURLOPT_COOKIEJAR, PLURK_COOKIE_PATH);
		$response = curl_exec($ch);
		$http_response = $response;
		$http_status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
		curl_close($ch);
		return ($response);
	}
	
	function __deconstruct() {}
	
}